cmake_minimum_required(VERSION 3.5)

project(PointDrawer VERSION 1.0.0 LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(Qt5 REQUIRED COMPONENTS Core Widgets)

set(SOURCES
    main.cpp
    mainwindow.cpp
    drawingview.cpp
    pointparser.cpp
    segmentclassifier.cpp
)

set(HEADERS
    mainwindow.h
    drawingview.h
    pointparser.h
    segmentclassifier.h
)

add_executable(${PROJECT_NAME} ${SOURCES} ${HEADERS})

target_link_libraries(${PROJECT_NAME} Qt5::Core Qt5::Widgets)
